package com.xzy.urp.service;

import com.xzy.urp.pojo.entity.CourseTime;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xzy.urp.pojo.vo.CourseTimeVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xzy
 * @since 2022-02-17
 */
public interface CourseTimeService extends IService<CourseTime> {

    List<CourseTimeVO> getByTeacherId(Long tId, Integer semester);

    List<CourseTimeVO> getByStudentId(Long sId, Integer semester);

    void removeCtime(Long cId);

    void addCtime(CourseTimeVO courseTimeVO);

    //周期内是否有课
    Boolean isPlan(Long tId,Integer start,Integer end);

}
